import 'service_object_mo.dart';

class ServiceObjectListMo {
  int? code;
  String? message;
  List<ServiceObjectMo>? data;
  bool? success;

  ServiceObjectListMo({
      this.code, 
      this.message, 
      this.data, 
      this.success});

  ServiceObjectListMo.fromJson(dynamic json) {
    code = json['code'];
    message = json['message'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data?.add(ServiceObjectMo.fromJson(v));
      });
    }
    success = json['success'];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['code'] = code;
    map['message'] = message;
    if (data != null) {
      map['data'] = data?.map((v) => v.toJson()).toList();
    }
    map['success'] = success;
    return map;
  }

}
